//绘制直线
  function drawLines({ options, data }) {
  let { startY, startX, endX, endY, color, width } = data
  let {ctx} = options
  ctx.lineWidth = width;
  ctx.strokeStyle = color;
  ctx.beginPath();
  ctx.moveTo(startX,startY);
  ctx.lineTo(endX,endY);
  ctx.stroke();
}
module.exports = drawLines